            <div class="head"><h5 class="iFrames">Fields</h5></div>
            <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
                <thead>
                    <tr>
                        <th>Name</th>
                        <th>Value</th>
                        <th>Actions</th>
                    </tr>
                </thead>
                <tbody>
                    	<?php foreach ($fields as $field){ ?>
		                    <tr class="gradeA">
		                        	<td><?php echo $field->getName(); ?></td>
		                        	<td><?php echo html_entity_decode($field->getValue()); ?></td>
		                        	<td>
		                        		<div style="clear:both;">
		                        			<div style="float: left;">
		                        				<img style="cursor:pointer"  src="<?php echo image_path("icons/color/notebook.png")?>" onclick=" window.location.href='<?php echo url_for('listing_content/index?field_id=' . $field->getId() . '&list_id='.$listing->getId() )?>' ;")) />
		                        			</div>
		                        			
		                        			<div style="float: left; margin-left: 5px">
												<img style="cursor:pointer"   src="<?php echo image_path("icons/color/cross.png")?>" onclick="jConfirm('Are you sure you want to delete the selected Field?', 'Confirmation Dialog', function(r){if (!r){return false} else { window.location.href='<?php echo url_for('listing_content/delete?field_id=' . $field->getId().'&listing_id='.$listing->getId() )?>' }});")) />		   
		                        			</div>
		                        		</div>
		                        	</td>
		                    </tr>
                        <?php }?>
                </tbody>
            </table>
       
        
        <script>
    	oTable = $('#example').dataTable({
    		"bJQueryUI": true,
    		"sPaginationType": "full_numbers",
    		"sDom": '<""f>t<"F"lp>',
    		"bDestroy": true
    	});
        </script>